function rmr:connect/connect